package com.ruoyi.pingjiao.mapper;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.pingjiao.domain.Coureassess;
import com.ruoyi.pingjiao.domain.vo.AverageVo;
import com.ruoyi.pingjiao.domain.vo.FinishAverage;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Mapper
public interface CourseAssessMapper {
    List<Coureassess> selectCourseAssessList(Coureassess coureassess);

    Object getCourseAssessById(Long id);

    Long add(Coureassess coureassess);

    int update(Coureassess coureassess);

    int delete(Long[] id);

    List<Coureassess> statisticsAverage(Map<String, Object> map);

    String selectCourseassessById(Integer courseAssessId);

    String selectCourseassessMaxByCourseId(Long courseId);

    String selectCourseassessByMin(Long courseId);

    Coureassess selectCourseassessInfo(Map map);

    int countByTeacherId(Long teacherId);

    ArrayList<Coureassess> list(Integer courseId);

    List<Coureassess> selectPercentList();

    List<Coureassess> selectInfoByTeacherId(Long teacherId);

    AverageVo selectAverage(Long courseId);

    List<Coureassess> getAverageByCourseId(Integer courseId);

    List<Coureassess> selectCourseAssessByCourseId(Integer courseId);

    int countByCourseId(Integer courseId);

    Long selectCourseAssessIdByCourseAssess(String courseassess);
}
